package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface TravelCommendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelCommend record);

    TravelCommend selectByPrimaryKey(Long id);

    List<TravelCommend> selectAll();

    int updateByPrimaryKey(TravelCommend record);
    /**
     * 高级查询
     * @param qo
     * @return
     */
    List<TravelCommend> selectForList(QueryObject qo);

    /**
     * 查询周推荐的游记
     * @param qo
     * @return
     */
    List<Map<String,Object>> selectForCommendList(QueryObject qo);
}